package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Accessors(chain = true)
public class Log {

    /**
     * 操作日志id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 教师id
     */
    private Integer teacherId;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 修改时间
     */
    private LocalDateTime inputTime;

    /**
     * 修改IP地址
     */
    private String ip;

    /**
     * 修改信息
     */
    private String info;
    @TableField(exist = false)
    private Teacher teacher;

    @TableField(exist = false)
    private Student student;
}
